<h3><?php $actionform->out('step5') ?></h3>
<?php $actionform->out('payment') ?> <?php $actionform->out('stdCurrency') ?>
<form action="?" method="POST">
    <input type="hidden" name="action" value="finish"/>
    <?php $actionform->docId() ?>
<table Border=0 cellpadding="4" cellspacing="0" width="100%">
<?php
$cart_bg_color = 'silver';
$counter = 0;
if ($actionform->get('numPosCart'))
{ ?>
    <tr>
      <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php $actionform->out('pos') ?>:</td>
      <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php $actionform->out('orderno') ?>:</td>
      <td bgcolor="<?php echo $cart_bg_color ?>"><?php $actionform->out('name') ?>:</td>
      <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php $actionform->out('quantity') ?>:</td>
      <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php $actionform->out('price') ?>:</td>
      <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php $actionform->out('sum') ?>:</td>
    </tr>
    <tr>
      <td colspan="7" style="padding:0px; height:1px"></td>
    </tr>
<?php
    $cart = $actionform->get('cart');
    for ($i = 0; $i < count($cart); $i++) { 
        $article = $cart[$i] ?>
    <tr>
      <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?=($i+1)?></td>
      <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?=$article['orderno']?></td>
      <td bgcolor="<?php echo $cart_bg_color ?>"><?=$article['name']?></td>
      <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?=$article['quantity'] ?></td>
      <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php 
        print $actionform->currencyAsStr($article['price'],$actionform->get('stdCurrency')) ?></td>
      <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php 
        print $actionform->currencyAsStr($article['price']*$article['quantity'],$actionform->get('stdCurrency')) ?></td>
    </tr>
        <?php
        if ($article['cnfart']): ?>
        <tr>
           <td colspan="7" align="center" bgcolor="<?php echo $cart_bg_color ?>"><table border="0" width="70%">
             <tr>
               <td colspan="3"><b>Komponenten:</b></td>
             </tr>
             <tr>
               <td>BestNr:</td>
               <td>Produkt:</td>
               <td>Preis:</td>
             </tr>
             <? $cartmod->cartConfiguratorArticles($c,array('<tr><td>$orderno</td><td>$name</td><td align="right">$price ',$c->get('stc'),'</td></tr>')) ?>
           </table></td>
         </tr>
  <?php endif; ?>
    <tr>
      <td colspan="7" style="padding:0px; height:1px"></td>
    </tr>
<?php
   }   
?>
  </table>
  <table border="0" cellspacing="0" cellpadding="4" width="100%">
        <tr>
          <td bgcolor="<?php echo $cart_bg_color ?>" valign="top"><b><?php $actionform->out('subtotal_txt') ?>:</b></td>
          <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><b><?php 
            $actionform->outCurrency('subTotal',$actionform->get('stdCurrency')) ?></b></td>
        </tr>
        <?php /*<tr>
          <td bgcolor="<?php echo $cart_bg_color ?>">enthaltene Mehrwertsteuer:</td>
          <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php 
            $actionform->outCurrency('subTotalTax',$actionform->get('stdCurrency')) ?></td>
        </tr>*/ ?>
  </table>
  <?php
  if ($actionform->get('paymentPricePremium')):
  ?>
  <table border="0" cellspacing="0" cellpadding="4" width="100%">
        <tr>
          <td bgcolor="<?php echo $cart_bg_color ?>" valign="top"><b><?php $actionform->out('premium_txt') ?>:</b></td>
          <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><b><?php 
            $actionform->outCurrency('premium',$actionform->get('stdCurrency')) ?></b></td>
        </tr>
        <?php /*<tr>
          <td bgcolor="<?php echo $cart_bg_color ?>">enthaltene Mehrwertsteuer:</td>
          <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php 
            $actionform->outCurrency('premiumTax',$actionform->get('stdCurrency')) ?></td>
        </tr> */ ?>
  </table>
  <?php
  elseif ($actionform->get('paymentDiscount')):
  ?>
  <table border="0" cellspacing="0" cellpadding="4" width="100%">
        <tr>
          <td bgcolor="<?php echo $cart_bg_color ?>" valign="top"><b><?php $actionform->out('with') ?> <?php
            $actionform->out('paymentDiscount') ?>% <?php $actionform->out('discount_txt') ?>:</b></td>
          <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><b><?php 
            $actionform->outCurrency('discount',$actionform->get('stdCurrency')) ?></b></td>
        </tr>
        <?php /* <tr>
          <td bgcolor="<?php echo $cart_bg_color ?>">enthaltene Mehrwertsteuer:</td>
          <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php 
            $actionform->outCurrency('discountTax',$actionform->get('stdCurrency')) ?></td>
        </tr>*/ ?>
  </table>
  <?php
  endif;
  ?>
  <table border="0" cellspacing="0" cellpadding="4" width="100%">
        <tr>
          <td bgcolor="<?php echo $cart_bg_color ?>"><b><?php $actionform->out('postage_txt') ?>:</b> (<?php $actionform->out('up_to') ?> <?php
          $actionform->out('calcBasis') ?>)</td>
          <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><b><?php 
            $actionform->outCurrency('postage',$actionform->get('stdCurrency')) ?></b></td>
        </tr>
        <?php /*<tr>
          <td bgcolor="<?php echo $cart_bg_color ?>">enthaltene Mehrwertsteuer:</td>
          <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php 
            $actionform->outCurrency('postageTax',$actionform->get('stdCurrency')) ?></td>
        </tr> */ ?>
        <tr>
          <td bgcolor="<?php echo $cart_bg_color ?>" valign="top"><b><?php $actionform->out('total_txt') ?>:</b></td>
          <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><b><?php 
            $actionform->out('total') ?></b></td>
        </tr>
        <tr>
          <td bgcolor="<?php echo $cart_bg_color ?>"><?php $actionform->out('inc_tax') ?>:</td>
          <td bgcolor="<?php echo $cart_bg_color ?>" align="right"><?php 
            $actionform->outCurrency('totalTax',$actionform->get('stdCurrency')) ?></td>
        </tr>
  </table>
<center>
<br/>
<input type="submit" value="<?php $actionform->out('complete_order') ?>"/>
</form>
</center>
<?php
}
else
{ ?>
<table border="0">
    <tr>
      <td>keine Artikel im Warenkorb</td>
    </tr>
</table>
<?php
} ?>